const setting = {
  state: {
    marketingActivityTypeKeyOptions: {
      1: '消费满额赠礼',
      2: '支付后返零钱',
      3: '支付后返微信红包',
      4: '领券活动',
      5: '单品立减',
      6: '单品买N送M',
      7: '单品折扣',
      8: '单品减至固定优惠价'
    },
    paymentOptions: [
      {
        key: 1,
        label: '微信支付'
      },
      {
        key: 2,
        label: '余额支付'
      },
      {
        key: 3,
        label: '支付宝'
      },
      {
        key: 4,
        label: '银联刷卡'
      },
      {
        key: 5,
        label: '现金支付'
      },
      {
        key: 6,
        label: '云闪付'
      },
      // {
      //   key: 9,
      //   label: '礼品卡'
      // },
      {
        key: 11,
        label: '农行支付'
      }, {
        key: 12,
        label: '建行龙支付'
      },
      {
        key: 99,
        label: '未定义'
      }
    ],
    paymentKeyOptions: {
      0: '无',
      1: '微信支付',
      2: '余额支付',
      3: '支付宝',
      4: '银联刷卡',
      5: '现金支付',
      6: '云闪付',
      9: '礼品卡',
      11: '农行支付',
      12: '建行龙支付',
      99: '未定义'
    },
    bizCodeOptions: [
      // 新版新增
      {
        key: 9000,
        label: '收款',
        usePay: 1,
        canDiscount: 1,
        // features: ['PAY']
        features: []
      },
      {
        key: 9001,
        label: '会员充值',
        usePay: 1,
        canDiscount: 0,
        features: ['MEMBER_BALANCE']
      },
      {
        key: 9002,
        label: '会员开卡',
        usePay: 1,
        canDiscount: 0,
        features: ['MEMBER_BASE']
      },
      {
        key: 9003,
        label: '赠送会员',
        usePay: 1,
        canDiscount: 0,
        features: ['MEMBER_BASE']
      },
      {
        key: 9004,
        label: '预订',
        usePay: 1,
        canDiscount: 1,
        features: ['BOOKING', 'BOOKING_HOUR_ROOM', 'BOOKING_KTV']
      },
      {
        key: 9014,
        label: '预约',
        usePay: 1,
        canDiscount: 1,
        features: []
      },
      {
        key: 9005,
        label: '微点餐',
        usePay: 1,
        canDiscount: 1,
        features: ['WCANYIN']
      },
      // 新版去除
      // {
      //   key: 9006,
      //   label: '商家助手小程序',
      //   usePay: 1,
      //   canDiscount: 1,
      //   features: ['PAY']
      // },
      {
        key: 9007,
        label: '校园缴费',
        usePay: 1,
        canDiscount: 0,
        features: ['SCHOOL_PAY']
      },
      // 新版去除
      // {
      //   key: 9008,
      //   label: 'POS机APP',
      //   usePay: 1,
      //   canDiscount: 1,
      //   features: ['PAY']
      // },
      {
        key: 9010,
        label: '会员年费缴纳',
        usePay: 1,
        canDiscount: 0,
        features: ['MEMBER_BASE']
      },
      {
        key: 9011,
        label: '积分商城',
        usePay: 1,
        canDiscount: 1,
        features: ['MEMBER_POINTS_MALL']
      },
      {
        key: 9012,
        label: '码牌支付',
        usePay: 1,
        canDiscount: 1,
        // features: ['QRCODE_PAY']
        features: []
      },
      {
        key: 9013,
        label: '商城',
        usePay: 1,
        canDiscount: 1,
        features: ['MALL']
      },
      {
        key: 9050,
        label: '推广奖励',
        usePay: 0,
        canDiscount: 0,
        features: ['MEMBER_BASE']
      },
      {
        key: 9051,
        label: '会员导入',
        usePay: 0,
        canDiscount: 0,
        features: ['MEMBER_BASE']
      },
      {
        key: 9052,
        label: '人工客服',
        usePay: 0,
        canDiscount: 0,
        features: ['MEMBER_BASE']
      },
      {
        key: 9053,
        label: '充值赠送',
        usePay: 0,
        canDiscount: 0,
        features: ['MEMBER_BALANCE']
      },
      {
        key: 9054,
        label: '升级赠送',
        usePay: 0,
        canDiscount: 0,
        features: ['MEMBER_BASE']
      },
      {
        key: 9055,
        label: '卡过期清零',
        usePay: 0,
        canDiscount: 0,
        features: ['MEMBER_BALANCE']
      },
      {
        key: 9056,
        label: '优惠券核销',
        usePay: 0,
        canDiscount: 0,
        features: ['COUPON']
      },
      {
        key: 9057,
        label: '积分清零',
        usePay: 0,
        canDiscount: 0,
        features: ['MEMBER_POINTS']
      },
      {
        key: 9070,
        label: '扫码领取优惠券',
        usePay: 0,
        canDiscount: 0,
        features: ['COUPON']
      }, {
        key: 9072,
        label: '卡券预制',
        usePay: 0,
        canDiscount: 0,
        features: ['CONSUMPTION_YZ']
      },
      {
        key: 9110,
        label: '消费奖励',
        usePay: 0,
        canDiscount: 0,
        features: []
      },
      {
        key: 9112,
        label: '好友消费',
        usePay: 0,
        canDiscount: 0,
        features: []
      },
      {
        key: 9114,
        label: '好友充值',
        usePay: 0,
        canDiscount: 0,
        features: []
      }
      // {
      //   key: 9071,
      //   label: '营销赠送',
      //   usePay: 0,
      //   canDiscount: 0,
      //   features: ['MARKETING']
      // }
    ],
    bizCodeKeyOptions: {
      0: '其它业务',
      9000: '收款',
      9001: '会员充值',
      9002: '会员开卡',
      9003: '赠送会员',
      9004: '预订',
      9005: '微点餐',
      9006: '商家助手小程序',
      9007: '校园缴费',
      9008: 'POS机APP',
      9010: '会员年费缴纳',
      9011: '积分商城',
      9012: '码牌支付',
      9013: '商城',
      9050: '推广奖励',
      9051: '会员导入',
      9052: '人工客服',
      9053: '充值赠送',
      9054: '升级赠送',
      9055: '卡过期清零',
      9056: '优惠券核销',
      9057: '积分清零',
      9070: '扫码领取优惠券',
      9071: '营销赠送',
      9072: '卡券预制',
      9100: '开放平台',
      9110: '消费奖励',
      9112: '好友消费',
      9114: '好友充值',
      9014: '预约'
    },
    sourceCodeOptions: [
      {
        key: 801,
        label: '微信公众号'
      },
      {
        key: 802,
        label: '微信会员小程序'
      },
      {
        key: 803,
        label: '商家助手小程序'
      },
      {
        key: 804,
        label: '微信支付助手小程序'
      },
      {
        key: 810,
        label: '支付宝服务窗'
      },
      {
        key: 820,
        label: 'POS机APP'
      },
      {
        key: 821,
        label: '静态二维码'
      },
      {
        key: 822,
        label: '简易扫码设备'
      },
      {
        key: 823,
        label: '消费机'
      },
      {
        key: 824,
        label: 'PC插件'
      },
      {
        key: 830,
        label: '商户后台'
      },
      {
        key: 831,
        label: '服务商后台'
      },
      {
        key: 832,
        label: '聚合支付后台'
      },
      {
        key: 840,
        label: '开放平台'
      },
      {
        key: 841,
        label: '聚合支付平台'
      },
      {
        key: 842,
        label: '商户app'
      }

    ],
    sourceCodeKeyOptions: {
      0: '其它来源',
      801: '微信公众号',
      802: '微信会员小程序',
      803: '商家助手小程序',
      804: '微信支付助手小程序',
      810: '支付宝服务窗',
      820: 'POS机APP',
      821: '静态二维码',
      822: '简易扫码设备',
      823: '消费机',
      824: 'PC插件',
      830: '商户后台',
      831: '服务商后台',
      832: '聚合支付后台',
      840: '开放平台',
      841: '聚合支付平台',
      842: '商户app'
    },
    cardCouponTypeKeyOptions: {
      CASH: '代金券',
      DISCOUNT: '折扣券',
      GENERAL: '通用券',
      cash: '代金券',
      cash_wx_pay: '微信支付代金券',
      cash_wx_busi: '微信商家代金券',
      discount: '折扣券',
      discount_wx_busi: '微信商家折扣券',
      exchange: '兑换券',
      times: '次卡',
      gift: '礼品卡'
    },
    // 鉴权接口
    authorizeApi: {
      '/paymanage/saveRefundPwd': { sceneStr: 'refundPwd', needAdmin: false },
      '/business_admin/user/modify_pw': { sceneStr: 'mchPw', needAdmin: true },
      '/abc/admin/eAccount/config': { sceneStr: 'eAccount', needAdmin: false }
    }
  },
  mutations: {},
  actions: {}
}

export default setting
